#include <stdio.h> 
#include <string.h>
struct stu
{                                                                                                                                                                                                                                                                                                                                               
    char name[10];
    int age;
    char sex [10];
    char tele [10];
};
void set_struct(struct stu* ss)
{
    strcpy(ss->name,"zhangsan");
    ss->age = 18;
    strcpy(ss->sex,"nan");
    strcpy(ss->tele,"15392745602");
}
void print (struct stu* ss)
{
    printf("%s\n",ss->name);
    printf("%d\n",ss->age);
    printf("%s\n",ss->sex);
    printf("%s\n",ss->tele);
}
int main()
{
    struct stu s ;
    struct stu *ss = &s;
    set_struct(ss);
    print(ss);
    return 0;
} 